<?php
/**
 * Created by PhpStorm.
 * User: 91336
 * Date: 13-12-19
 * Time: 下午5:25
 */

abstract class CommonAction extends Action{
    function _initialize(){
        $theme = 'default';
        $tmpl_parse_string = C('TMPL_PARSE_STRING');
        foreach($tmpl_parse_string as $key => $item){
            $item = str_replace('[theme]', $theme, $item);
            $tmpl_parse_string[$key] = $item;
        }
        C('TMPL_PARSE_STRING', $tmpl_parse_string);
    }
}